﻿<%@ WebHandler Language="C#" Class="UserListHandler" %>

using System;
using System.Web;
using Newtonsoft.Json;
using CheatService;

public class UserListHandler : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "application/json;charset=UTF-8";
        string userList = Newtonsoft.Json.JsonConvert.SerializeObject(UserContorl.GetOnlineUser());
        context.Response.Write(userList);
    }
 
    public bool IsReusable {
        get {
            return true;
        }
    }

}